<?php
/**
*
* 功能描述（日志控制器）
*
* @author suoya <jlusuoya@gmail.com>
* @version 1
*/

class CtrlLog extends CtrlBase
{
	public $paramCheck = array(
		"showlog" => array(
			"page" => array("GET", "1", "intval", "positive"),
		),
	);

	public $perm = array('log', "index.php?action=login.tologin");

	function ShowLog()
	{
		$obj = $this->GetModel("log");
		$data = $obj->GetLogList($this->params['page']);
		$this->assign("listdata", $data['data']);
		$this->assign("totalCnt", $data['cnt']);
		$this->assign("pageCnt", $data['pageCnt']);
		$this->assign("curPage", $this->params['page']);
		return RT_TPL;
	}
}

